<?php
Route::get('test', 'club/Test/test');
/**
 * 后台接口路由
 */
// 通过密码登录
Route::post('club.sign.by_password', 'club/Sign/signByPassword');
// 检测token以及权限
Route::post('club.sign.verification', 'club/Sign/verification');
// 清除Token
Route::post('club.sign.clear_token', 'club/Sign/clearToken');
/*********************管理员相关**********************/
// 创建管理员
Route::post('club.user.create', 'club/User/create');
// 获取管理员列表
Route::get('club.user.list', 'club/User/items');
// 获取管理员信息
Route::get('club.user.info', 'club/User/info');
// 更新管理员
Route::post('club.user.update', 'club/User/update');
// 删除管理员
Route::post('club.user.delete', 'club/User/delete');
// 禁用/解禁管理员
Route::post('club.user.is_disable', 'club/User/isDisable');
// 管理员授权
Route::post('club.user.authorization', 'club/User/authorization');
/*************************权限相关***************************/
// 根据pid获取权限
Route::get('club.rule.get_list_by_pid', 'club/Rule/getListByPid');
// 获取无限极格式的数据
Route::get('club.rule.infinite', 'club/Rule/infinite');
// 通过ID获取单条权限信息
Route::get('club.rule.get_rule_info_by_id', 'club/Rule/getRuleInfoById');
// 获取控制面板菜单
Route::get('club.rule.dashboard', 'club/Rule/dashboard');
// 获取侧边栏菜单
Route::get('club.rule.menu', 'club/Rule/menu');
// 获取指定权限下的所有子权限
Route::get('club.rule.identification', 'club/Rule/identification');
/****************************管理组相关********************/
// 新增管理组
Route::post('club.group.create', 'club/Group/create');
// 更新管理组
Route::post('club.group.update', 'club/Group/update');
// 删除管理组
Route::post('club.group.delete', 'club/Group/delete');
// 通过ID获取单条管理组
Route::get('club.group.get_group_info_by_id', 'club/Group/getGroupInfoById');
// 获取管理组列表
Route::get('club.group.get_list', 'club/Group/getList');
// 给用户组授权
Route::post('club.group.authorization', 'club/Group/authorization');
// 获取所有用户组
Route::get('club.group.all', 'club/Group/all');
/**************************文件上传相关********************/
//  上传缩略图片
Route::post('club.upload.thumb', 'club/Upload/thumb');
//  编辑文章时上传图像
Route::post('club.upload.image.article', 'club/Upload/article');
/*********************区域相关**********************/
// 通过Pid获取区域列表
Route::get('club.area.item.by.pid', 'club/Area/itemByPid');
/*********************上车点相关*********************/
// 通过市级ID获取上车点列表
Route::get('club.collection.item.by.city', 'club/CollectionPoint/itemsByCity');
// 添加集合点(支持批量添加)
Route::post('club.collection.point.add','club/CollectionPoint/add');
//通过ID修改上车点信息
Route::post('club.collection.point.edit','club/CollectionPoint/edit');
//通过ID删除上车点信息
Route::post('club.collection.point.delete','club/CollectionPoint/delete');
//通过club_id获取上车列表
Route::get('club.collection.point.items','club/CollectionPoint/items');
/*********************活动相关*********************/
// 获取集合点列表
Route::get('club.activity.collection.point.items', 'club/Activity/collectionPointItems');
// 编辑集合点
Route::post('club.activity.collection.point.edit', 'club/Activity/editCollectionPoint');
// 添加集合点
Route::post('club.activity.collection.point.create', 'club/Activity/createCollectionPoint');
// 上车点人数限制批量设置
Route::post('club.activity.collection.point.sign.up.limit.batch.set', 'club/Activity/batchSetCollectionPointNumberOfPeople');
// 活动发布
Route::post('club.activity.add', 'club/Activity/add');
// 获取活动列表
Route::get('club.activity.items', 'club/Activity/activityItems');
// 获取活动单条数据
Route::get('club.activity.single.data', 'club/Activity/activitySingleData');
// 通过活动ID编辑活动
Route::post('club.activity.edit', 'club/Activity/activityEdit');
// 通过团期ID修改活动状态
Route::post('club.activity.edit.upper.and.lower', 'club/Activity/editUpperAndLower');
// 获取单条团期数据
Route::get('club.group.stage.single.data', 'club/Activity/groupStageSingleData');
// 编辑团期
Route::post('club.activity.group.stage.edit', 'club/Activity/groupStageEdit');
// 通过活动ID获取团期列表aa
//Route::get('club.activity.group.items', 'club/Activity/groupItems');
// 通过团期ID获取集合点列表
//Route::get('club.activity.collection.items', 'club/Activity/collectionItems');
// 删除活动(软删除)
//Route::post('club.activity.delete', 'club/Activity/activityDelete');
// 删除团期(软删除)
//Route::post('club.activity.group.stage.delete', 'club/Activity/groupStageDelete');
// 删除上车集合点(软删除)
//Route::post('club.activity.collection.point.delete', 'club/Activity/collectionPointDelete');
/**************************地图相关********************/
// 通过地址获取经纬度
Route::get('club.map.location.by.address', 'club/Map/getLocationByAddress');
// 通过经纬度获取地址
Route::get('club.map.address.by.location', 'club/Map/getAddressByLocation');
